//
//  MyAnimatedAnnotationView.m
//  WhereToTravel
//
//  Created by dlios on 15/10/24.
//  Copyright © 2015年 zhoushengmin. All rights reserved.
//

#import "MyAnimatedAnnotationView.h"

@implementation MyAnimatedAnnotationView

- (instancetype)initWithAnnotation:(id<BMKAnnotation>)annotation reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithAnnotation:annotation reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setBounds:CGRectMake(0.f, 0.f, 32.f, 32.f)];
        [self setBackgroundColor:[UIColor clearColor]];
        self.annotationImageView = [[UIImageView alloc]initWithFrame:self.bounds];
        self.annotationImageView.contentMode = UIViewContentModeCenter;
        [self addSubview:self.annotationImageView];
    }
    return self;
}
//- (void)setAnnotationImages:(NSMutableArray *)annotationImages {
//    _annotationImages = annotationImages;
//    [self updateImageView];
//}
//- (void)updateImageView {
//    if ([_annotationImageView isAnimating]) {
//        [_annotationImageView stopAnimating];
//    }
//    _annotationImageView.animationImages = _annotationImages;
//    _annotationImageView.animationDuration = 0.5 * [_annotationImages count];
//    _annotationImageView.animationRepeatCount = 0;
//    [_annotationImageView startAnimating];
//    
//}
@end
